package com.zhaoxi.demo.models;

import java.util.Date;

/**
 * Created by Infor on 2017/07/01.
 */
public class Student {

    private int id;
    private String name;
    private int age;
    private String email;
    private String phone;
    private Date createDate;


    public Student() {
    }

    public Student(String name, int age, String email, String phone, Date createDate) {
        this.name = name;
        this.age = age;
        this.email = email;
        this.phone = phone;
        this.createDate = createDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", createDate=" + createDate +
                '}';
    }
}
